package cn.techwis.common;

public @interface WxApi {

    //认证方式
    String CERTIFICATION = "WECHATPAY2-SHA256-RSA2048";

    String WXAPI = "https://api.mch.weixin.qq.com/v3/";

    @interface payAppi {
        /**
         * 小程序/JSAPI下单接口
         */
        String JSAPI = WXAPI + "pay/transactions/jsapi";


        /**
         * APP下单接口
         */
        String APPAPI = WXAPI + "pay/transactions/app";

        /**
         * H5下单接口
         */
        String H5API = WXAPI + "pay/transactions/h5";

        /**
         * native 下单接口
         */
        String NATIVEAPI = WXAPI + "pay/transactions/native";

        String certificates = WXAPI + "certificates";


    }

    @interface payQuery {
        /**
         * 微信支付订单号查询
         */
        String TRANSACTIONS = WXAPI + "pay/transactions/id/{}?mchid={}";

        /**
         * 商户订单号查询
         */
        String OUTTRADENO = WXAPI + "pay/transactions/out-trade-no/{}?mchid={}";
    }

    @interface payClose {
        /**
         * 关单API
         */
        String CLOSEORDER = WXAPI + "pay/transactions/out-trade-no/{}/close";
    }

    @interface refunds {
        /**
         * 退款api
         */
        String REFUNDS = WXAPI + "refund/domestic/refunds";

    }

    @interface refundsQuery {
        /**
         * 退款查询api
         */
        String REFUNDSQUERY = WXAPI + "refund/domestic/refunds/{}";
    }

    @interface billQuery {
        /**
         * 交易账单
         */
        String TRADEBILL = "https://api.mch.weixin.qq.com/v3/bill/tradebill?bill_date={}&bill_type={}&tar_type={}";

        /**
         * 资金账单
         */
        String FUNDFLOWBILL="https://api.mch.weixin.qq.com/v3/bill/fundflowbill?bill_date={}&account_type={}&tar_type={}";




    }


}
